<script>
	import Vue from 'vue'
	export default {
		onLaunch: function() {
			console.log("app launch");
			uni.getSystemInfo({
				success: function(e) {
					
					// #ifndef MP
					Vue.prototype.StatusBar = e.statusBarHeight;
					if (e.platform == 'android') {
						Vue.prototype.CustomBar = e.statusBarHeight + 50;
					} else {
						Vue.prototype.CustomBar = e.statusBarHeight + 45;
					};
					// #endif

					// #ifdef MP-WEIXIN
					Vue.prototype.StatusBar = e.statusBarHeight;
					let custom = wx.getMenuButtonBoundingClientRect();
					Vue.prototype.Custom = custom;
					Vue.prototype.CustomBar = custom.bottom + custom.top - e.statusBarHeight + 4;
					// #endif		

					// #ifdef MP-ALIPAY
					Vue.prototype.StatusBar = e.statusBarHeight;
					Vue.prototype.CustomBar = e.statusBarHeight + e.titleBarHeight;
					// #endif
					console.log("Vue 原型",Vue.prototype);
				}
			});
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style lang="scss">
	@import "colorui/main.css";
	@import "colorui/icon.css";
	@import "uview-ui/index.scss";
	.content{
		padding:10rpx 20rpx;
	}
	.page{
		background-color: $u-bg-color;
	}
	.section{
		margin-bottom: 20rpx;
	}
	.w100{
		width: 100%;
	}
	.fire.cu-list.menu-avatar>.cu-item {
		min-height: 165rpx;
		height: auto;
		padding: 10rpx 5rpx;
	
		>.content {
			left: 0;
			width: auto;
			height: 100%;
		}
	
	}
	.middle-content{
		// margin-bottom: 170rpx;
	}
	.fix-bottom{
		position: fixed;
		bottom: 0;
		margin-bottom: 0;
		width: 100%;
		left: 0;
	}
</style>
